Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix encoding for MiniProfiler init script #5553

Merged
merged 2 commits into from
May 31, 2024

Conversation

labkey-tchad
Copy link
Member

Rationale

MiniProfiler.renderInitScript attempts to include the script tag as a part of a JavaScript fragment. This is no longer allowed and causes the tag to be left unclosed, totally breaking the page.
I'm adding a new buildScriptTagBlock method to the PageConfig that properly encodes the HTML and JavaScript portions separately and makes sure the script tag starts and ends correctly.

Related Pull Requests

Changes

  • Fix encoding for MiniProfiler init script

@labkey-tchad labkey-tchad merged commit 82c2ec2 into develop May 31, 2024
7 checks passed
@labkey-tchad labkey-tchad deleted the fb_fixMiniProfilerInitScriptEncoding branch May 31, 2024 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants